import request from '@/plugin/axios'

//封装post请求
export function post (url,data) {
    return request({
        url: url,
        method: 'post',
        data,
        xhrFields: {
            withCredentials: true
        }

    })
}


// mock请求
export function get (url) {
  return request({
    url: url,
    method: 'get',
      xhrFields: {
          withCredentials: true
      }

  })
}
